fetcher: Rework reference counting
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 23 Sep 2015 21:11:51 +0000 (17:11 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 23 Sep 2015 23:52:42 +0000 (19:52 -0400)
commit771075d319ccf68659f1e1db8a925c430788c988
treeef9d96f7fcd04756cba7bb8bd8c1f00a08c217f8
parent330a99c40b8adb0ed7e5c3b618acf3858a1456c7
fetcher: Rework reference counting

Have OstreeFetcherPendingURI be the GTask's task_data and pass the GTask
around in queues and callback closures.  The reference counting before
was a little confusing and this helps clarify it, at least to me.

OstreeFetcherPendingURI no longer needs its own reference count.
src/libostree/ostree-fetcher.c